//package me.shiqiang.im.action;
//
//import com.tst.common.returnobj.ReturnObj;
//import com.tst.common.returnobj.ReturnObjCode;
//import me.shiqiang.im.msg.SndMsg;
//import me.shiqiang.im.service.MessageService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * @author cuishiqiang
// * @date 2018/8/21 下午4:14
// */
////@RestController
////@RequestMapping("im/msg")
//public class MsgSearchAction {
//    private Logger logger = LoggerFactory.getLogger(this.getClass());
//
//    @Autowired
//    MessageService service;
//
//    /**
//     * 查询会话消息
//     * @param sessionId
//     * @param asc
//     * @param pageNum
//     * @param pageSize
//     * @return
//     */
//    @GetMapping("search")
//    public ReturnObj<List<SndMsg>> search(long sessionId,boolean asc,Integer pageNum,Integer pageSize) {
//        logger.info("sessionId:{},asc:{},pageNum:{},pageSize:{}",sessionId,asc,pageNum,pageNum);
//        List<SndMsg> sndMsgs = service.searchMsgs(sessionId, asc, pageNum, pageSize);
//        return new ReturnObj<>(ReturnObjCode.SUCCESS,sndMsgs);
//    }
//
//}
